package cn.ljy.uem.model;

import cn.ljy.authority.model.SysUser;
import cn.ljy.common.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;


/**
 * @description 工程日志类型
 * @author 王秋林
 * @date 2023-1-16 16:45
 */
@ApiModel(value="工程日志类型")
@Data
@NoArgsConstructor
public class ProjectDailyType extends BaseModel {
    private Long id;

    @ApiModelProperty(value = "工程日志类型")
    @NotBlank(message = "工程日志类型不能为空")
    @Length(min = 1, max = 30, message = "名称长度必须在 {min} - {max} 之间")
    private String name;

    @ApiModelProperty(value = "工程日志类型的排序级别")
    @NotNull(message = "级别不能为空")
    private Integer sort;


}
